export function useDeb(cb,time=400){
    //封装自定义防抖hooks
    let timer=null
    return (...args)=>{
        timer=setInterval(()=>{
            clearTimeout(timer);
            cb.apply(this,args)
        },time)
    }
}